import { Component, OnInit } from '@angular/core';
import {APARTMENT} from "../../service/apartment.service";
import {HttpUtils} from "../../utils/http.utils";
import {LocalStorage} from "../../app.local-storage";
declare var $:any;

@Component({
  selector: 'app-my-booking-view',
  templateUrl: './my-booking-view.component.html',
  styleUrls: ['./my-booking-view.component.scss']
})
export class MyBookingViewComponent implements OnInit {

  constructor(private apartment: APARTMENT, private api: HttpUtils, private localStorage:LocalStorage) {
    this.loadData()
  }
  bookingList:Array<any>=[];

  loadData(){
    this.apartment.getMyAppointmentList({}, (message: any)=> {
      this.bookingList=message.content;
      // console.log(message);
    });
  }
  ngOnInit() {
  }

}
